#include "timewokerthread.h"

TimeWokerThread::TimeWokerThread()
{

}

void TimeWokerThread::run()
{
    while (!this->isStopped) {
        QTime curtime=QTime::currentTime();
        int sec=curtime.second();
        emit resultNotify(sec);
        msleep(1000);
    }
}

void TimeWokerThread::stop()
{
    this->isStopped=true;
}
